package com.hqyj.controller;


import com.hqyj.pojo.Exampaper;
import com.hqyj.pojo.Practice;
import com.hqyj.service.IPracticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2021-11-18
 */
@RestController
@RequestMapping("/practice")
public class PracticeController {
@Autowired
    IPracticeService practiceService;
    @GetMapping("/getAll")
    public HashMap<String, Object> getAll(Practice practice){
        return practiceService.select(practice);
    }
}

